import { getMaster } from "../utils/mirUtil";
import { DamageChangeData } from "./DamageManage";


export class PlayerDamageManage{
    constructor(){

    }

    //人物攻击
    onPlayerAttack(ActorObject: TActor, ADamageSource: TActor, Tag: number, 
        SkillID: number, SkillLevel: number, Value: number):Array<DamageChangeData>{
        if(ADamageSource.IsPlayer())
        {
            let pleyer:TPlayObject=ADamageSource as TPlayObject;

        }
        return null;
    }

    //人物被攻击
    onPlayerStruck(ActorObject: TActor, ADamageSource: TActor, Tag: number, 
        SkillID: number, SkillLevel: number, Value: number):Array<DamageChangeData>{
        if(ActorObject.IsPlayer())
        {
            let pleyer:TPlayObject=ActorObject as TPlayObject;
            
        }
        return null;
    }

    //人物下属攻击
    onSlaveAttack(ActorObject: TActor, ADamageSource: TActor, Tag: number, 
        SkillID: number, SkillLevel: number, Value: number):Array<DamageChangeData>{
        let master:TActor=getMaster(ADamageSource);
        if(master&&master.IsPlayer())
        {
            let pleyer:TPlayObject=master as TPlayObject; 
        }
        return null;
    }

    //人物下属被攻击
    onSlaveStruck(ActorObject: TActor, ADamageSource: TActor, Tag: number, 
        SkillID: number, SkillLevel: number, Value: number):Array<DamageChangeData>{
        let master:TActor=getMaster(ActorObject);
        if(master&&master.IsPlayer())
        {
            let pleyer:TPlayObject=master as TPlayObject; 
        }
        return null;
    }
}